package org.wotou.authority.web.enums;

/**
 * 登录枚举类
 *
 * @author zhangQ
 * @date 2017/12/8
 */
public enum LoginStateEnum {
    USEISNULL(-1, "用户名为空"),
    PWDISNULL(-2, "密码为空"),
    USEISNO(0, "账户错误或不存在"),
    PWDWRONG(1, "密码错误"),
    USERTIMEOUT(2, "用户过期"),
    ISOK(3, "成功登录"),
    ISLOCK(4, "用户被锁定"),
    ISSTATENULL(5, "用户状态已被关闭"),
    ISONLINE(6, "已有人登录");

    LoginStateEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
